<extend name="Usercenter/index"/>

<block name="main">
    <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
        <ul class="layui-tab-title">
            <li class="layui-this">立即评论</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">

                <div class="view-product">
                    <div class="layui-container" style="margin-top: 20px">
                        <div class="layui-row">

                            <div class="layui-col-md6 layui-col-md-offset1">
                                <form class="layui-form" action="{{:U('Usercenter/addevado')}}" method="post" enctype="multipart/form-data">
                                    <input type="hidden" name="goods_id" value="{{$goods_id}}">
                                    <input type="hidden" name="order_id" value="{{$order_id}}">
                                    <div class="layui-form-item layui-form-text">
                                        <label class="layui-form-label">评价内容</label>
                                        <div class="layui-input-block">
                                            <textarea name="msg" placeholder="请输入评价内容" class="layui-textarea"></textarea>
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">评价等级</label>
                                        <div class="layui-input-block">
                                            <input type="radio" name="grade" value="1" title="☆">
                                            <input type="radio" name="grade" value="2" title="☆☆">
                                            <input type="radio" name="grade" value="3" title="☆☆☆">
                                            <input type="radio" name="grade" value="4" title="☆☆☆☆">
                                            <input type="radio" name="grade" value="5" title="☆☆☆☆☆" >
                                        </div>
                                    </div>


                                    <div class="layui-form-item">
                                        <div class="layui-input-block">
                                            <button class="layui-btn" lay-submit >发表评论</button>
                                            <!--<button type="reset" class="layui-btn layui-btn-primary">重置</button>-->
                                        </div>
                                    </div>
                                </form>

                            </div>
                        </div>
                    </div>
                    <script>
                        //Demo
                        layui.use('form', function(){
                            var form = layui.form;

                            //监听提交
                            form.on('submit(formDemo)', function(data){
                                layer.msg(JSON.stringify(data.field));
                                return false;
                            });
                        });
                    </script>

                    <div class="show-page padding-big-right hidden">
                        <div class="page">
                        </div>
                    </div>
                </div>

            </div>


        </div>
        <script>
            //注意：选项卡 依赖 element 模块，否则无法进行功能性操作
            layui.use('element', function(){
                var element = layui.element;
            });
        </script>
    </div>
</block>